package com.mall.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mall.domain.po.Role;
import com.mall.domain.response.Response;
import com.mall.mapper.RoleMapper;
import com.mall.service.RoleService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {
    @Override
    public Response<List<Role>> getRoles() {
        List<Role> list = this.list();
        return Response.success(list);
    }
}
